<?php if(!defined('IN_UCHOME')) exit('Access Denied'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<title>UCenter Home Control Panel</title>
<link id="mastercss" rel="stylesheet" href="admin/tpl/style.css" type="text/css" media="screen" />
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
</head>
<body>
<div id="wrap">
<div id="header">
<h2><a href="index.php" title="<?=$_SCONFIG['sitename']?>"><img src="admin/tpl/image/logo.gif" alt="<?=$_SCONFIG['sitename']?>" /></a></h2>

<div id="topmenu" class="gray">
欢迎您，<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>"><?=$_SGLOBAL['username']?></a> | 
<a href="space.php">我的空间</a> | 
<a href="cp.php?ac=common&op=logout">退出</a>
</div>
<?php $_TPL['menunames'] = array(
		'config' => '站点设置',
		'privacy' => '隐私设置',
		'usergroup' => '用户组',
		'credit' => '积分规则',
		'profilefield' => '用户栏目',
		'profield' => '选吧栏目',
		'censor' => '词语屏蔽',
		'ad' => '广告设置',
		'tagtpl' => '多应用设置',
		'network' => '随便看看设置',
		'cache' => '缓存更新',
		'space' => '用户管理',
		'feed' => '事件',
		'share' => '分享',
		'blog' => '日志',
		'album' => '相册',
		'pic' => '图片',
		'comment' => '评论',
		'thread' => '话题',
		'post' => '回帖',
		'doing' => '迷你博客',
		'tag' => '标签',
		'mtag' => '选吧',
		'block' => '数据调用',
		'template' => '模板编辑',
		'backup' => '数据备份',
		'stat' => '统计更新',
		'cron' => '计划任务'
	); ?>
<ul id="menu">
<li<?=$menuactive['index']?>><a href="admincp.php">管理平台</a></li>
<?php if(is_array($cmenus)) { foreach($cmenus as $value) { ?>
<li<?=$menuactive[$value]?>><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } } ?>
</ul>
</div>
<div id="content">


<div class="mainarea">
<div class="maininner">

<form method="post" action="admincp.php?ac=privacy">

<div class="bdrcontent">

<div class="title">
<h3>系统开放程度</h3>
<p>可以根据自己的需求，决定系统的内容开放程度。</p>
</div>

<table class="formtable">
<tr>
<th style="width:12em;">游客开放浏览</th>
<td>
<input type="radio" name="config[networkpublic]" value="1"<?php if($configs['networkpublic'] == 1) { ?> checked<?php } ?>>是
<input type="radio" name="config[networkpublic]" value="0"<?php if($configs['networkpublic'] == 0) { ?> checked<?php } ?>>否
<br>用户不需要登录也能浏览随便看看、未设置隐私的个人空间，同时，站内的信息也可以被搜索引擎收录。</td>
</tr>
<tr>
<th>允许访问的IP列表</th>
<td>
<textarea name="config[ipaccess]" cols="50" rows="4"><?=$configs['ipaccess']?></textarea>
<br />
只有当用户处于本列表中的 IP 地址时才可以访问站点，列表以外的地址访问将视为 IP 被禁止。每个 IP 一行，既可输入完整地址，也可只输入 IP 开头，例如 "192.168."(不含引号) 可匹配 192.168.0.0～192.168.255.255 范围内的所有地址，留空为所有 IP 均可访问。
<br />您当前的IP: <?=$onlineip?>
</td>
</tr>

<tr>
<th>禁止访问的IP列表</th>
<td>
<textarea name="config[ipbanned]" cols="50" rows="4"><?=$configs['ipbanned']?></textarea>
<br />
用户处于本列表中的 IP 地址禁止访问站点。每个 IP 一行，既可输入完整地址，也可只输入 IP 开头。
</td>
</tr>

</table>
<br>

<div class="title">
<h3>新用户默认隐私设置</h3>
<p>新用户将采用站内的默认隐私设置。用户可以修改自己的隐私设置</p>
</div>

<table class="formtable">
<tr>
<th style="width:12em;">空间首页</th>
<td><select name="privacy[view][index]">
<option value="0"<?=$sels['view']['index']['0']?>>全站用户可见</option>
<option value="1"<?=$sels['view']['index']['1']?>>仅好友可见</option>
<option value="2"<?=$sels['view']['index']['2']?>>仅自己可见</option>
</select></td>
</tr>
<tr>
<th width="100">个人基本资料</th>
<td><select name="privacy[view][profile]">
<option value="0"<?=$sels['view']['profile']['0']?>>全站用户可见</option>
<option value="1"<?=$sels['view']['profile']['1']?>>仅好友可见</option>
<option value="2"<?=$sels['view']['profile']['2']?>>仅自己可见</option>
</select></td>
</tr>
<tr>
<th>好友列表</th>
<td><select name="privacy[view][friend]">
<option value="0"<?=$sels['view']['friend']['0']?>>全站用户可见</option>
<option value="1"<?=$sels['view']['friend']['1']?>>仅好友可见</option>
<option value="2"<?=$sels['view']['friend']['2']?>>仅自己可见</option>
</select></td>
</tr>
<tr>
<th>留言板</th>
<td><select name="privacy[view][wall]">
<option value="0"<?=$sels['view']['wall']['0']?>>全站用户可见</option>
<option value="1"<?=$sels['view']['wall']['1']?>>仅好友可见</option>
<option value="2"<?=$sels['view']['wall']['2']?>>仅自己可见</option>
</select></td>
</tr>
<tr>
<th>个人动态</th>
<td><select name="privacy[view][feed]">
<option value="0"<?=$sels['view']['feed']['0']?>>全站用户可见</option>
<option value="1"<?=$sels['view']['feed']['1']?>>仅好友可见</option>
</select></td>
</tr>
<tr>
<th>迷你博客</th>
<td><select name="privacy[view][doing]">
<option value="0"<?=$sels['view']['doing']['0']?>>全站用户可见</option>
<option value="1"<?=$sels['view']['doing']['1']?>>仅好友可见</option>
</select>
</td>
</tr>
<tr>
<th>日志</th>
<td><select name="privacy[view][blog]">
<option value="0"<?=$sels['view']['blog']['0']?>>全站用户可见</option>
<option value="1"<?=$sels['view']['blog']['1']?>>仅好友可见</option>
</select>
</td>
</tr>
<tr>
<th>相册</th>
<td><select name="privacy[view][album]">
<option value="0"<?=$sels['view']['album']['0']?>>全站用户可见</option>
<option value="1"<?=$sels['view']['album']['1']?>>仅好友可见</option>
</select>
</tr>
<tr>
<th>分享</th>
<td><select name="privacy[view][share]">
<option value="0"<?=$sels['view']['share']['0']?>>全站用户可见</option>
<option value="1"<?=$sels['view']['share']['1']?>>仅好友可见</option>
</select></td>
</tr>
<tr>
<th>选吧</th>
<td><select name="privacy[view][mtag]">
<option value="0"<?=$sels['view']['mtag']['0']?>>全站用户可见</option>
<option value="1"<?=$sels['view']['mtag']['1']?>>仅好友可见</option>
<option value="2"<?=$sels['view']['mtag']['2']?>>仅自己可见</option>
</select></td>
</tr>
</table>

<br>

<div class="title">
<h3>默认动态发布设置</h3>
<p>设置系统默认将哪些动作发布到个人动态里面。用户可以修改这些默认设置。</p>
</div>
<table class="formtable">
<tr>
<th style="width:12em;">&nbsp;</th>
<td><input type="checkbox" name="privacy[feed][doing]" value="1"<?=$sels['feed']['doing']?>>迷你博客</td>
</tr>
<tr>
<th>&nbsp;</th>
<td><input type="checkbox" name="privacy[feed][blog]" value="1"<?=$sels['feed']['blog']?>>撰写日志</td>
</tr>
<tr>
<th>&nbsp;</th>
<td><input type="checkbox" name="privacy[feed][album]" value="1"<?=$sels['feed']['album']?>>创建相册</td>
</tr>
<tr>
<th>&nbsp;</th>
<td><input type="checkbox" name="privacy[feed][upload]" value="1"<?=$sels['feed']['upload']?>>上传图片</td>
</tr>
<tr>
<th>&nbsp;</th>
<td><input type="checkbox" name="privacy[feed][share]" value="1"<?=$sels['feed']['share']?>>添加分享</td>
</tr>
<tr>
<th>&nbsp;</th>
<td><input type="checkbox" name="privacy[feed][thread]" value="1"<?=$sels['feed']['thread']?>>发起话题</td>
</tr>
<tr>
<th>&nbsp;</th>
<td><input type="checkbox" name="privacy[feed][post]" value="1"<?=$sels['feed']['post']?>>对话题回复</td>
</tr>
<tr>
<th>&nbsp;</th>
<td><input type="checkbox" name="privacy[feed][mtag]" value="1"<?=$sels['feed']['mtag']?>>加入选吧</td>
</tr>
<tr>
<th>&nbsp;</th>
<td><input type="checkbox" name="privacy[feed][friend]" value="1"<?=$sels['feed']['friend']?>>添加好友</td>
</tr>
<tr>
<th>&nbsp;</th>
<td><input type="checkbox" name="privacy[feed][comment]" value="1"<?=$sels['feed']['comment']?>>发表评论/留言</td>
</tr>
</table>

</div>

<div class="footactions">
<input type="submit" name="thevaluesubmit" value="提交" class="submit">
</div>

</form>
</div>
</div>

<div class="side">
<?php if($menus['0']) { ?>
<div class="block style1">
<h2>常规设置</h2>
<ul class="folder">
<?php if(is_array($acs['0'])) { foreach($acs['0'] as $value) { ?>
<?php if($menus['0'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
</ul>
</div>
<?php } ?>

<div class="block style1">
<h2>批量管理</h2>
<ul class="folder">
<?php if(is_array($acs['3'])) { foreach($acs['3'] as $value) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } } ?>
<?php if(is_array($acs['1'])) { foreach($acs['1'] as $value) { ?>
<?php if($menus['1'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
</ul>
</div>

<?php if($menus['2']) { ?>
<div class="block style1">
<h2>高级应用</h2>
<ul class="folder">
<?php if(is_array($acs['2'])) { foreach($acs['2'] as $value) { ?>
<?php if($menus['2'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
<?php if($menus['0']['config']) { ?><li><a href="<?=UC_API?>" target="_blank">UCenter</a></li><?php } ?>
</ul>
</div>
<?php } ?>
</div>

</div>
<div id="footer">
<p>
Powered by <a  href="http://u.discuz.net" target="_blank" title="<?php echo X_RELEASE; ?>">UCenter Home</a> <?php echo X_VER; ?> 
<?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>, 
Copyright 2001-2008 <a  href="http://www.comsenz.com/" target="_blank">Comsenz Inc.</a>
</p>
<p><?php echo debuginfo(); ?></p>
</div>
</div>
</body>
</html>
<?php ob_out(); ?>
<?php subtplcheck('admin/tpl/privacy|admin/tpl/header|admin/tpl/side|admin/tpl/footer', '1226931356', 'admin/tpl/privacy'); ?>